#include<stdio.h>
#include<stdlib.h>

int main()
{
	char ch;
	FILE *fp;
	int l = 0;
	int n = 0;
	int o = -1;
	
	fp = fopen("in.txt","r");
	
	if (fp == NULL)
	{
		printf("Fail to open the file!");
		exit(0);
	}
	
	while (!feof(fp))
	{
		ch = fgetc(fp);
		
		if(( (ch>='a') && (ch<='z') ) || ( (ch>='A') && (ch<='Z') ))
		{
			l++;	
		}
		else if( (ch>='0') && (ch<='9') )
		{
			n++;	
		}
		else
			o++;
	}
	
	printf("%d %d %d",l,n,o);
	fclose(fp);
	return 0;				
}
	


